package com.pingba.dao;


import com.pingba.entity.User;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * Created by Administrator on 2015/10/19 0019.
 */
@Repository
public interface UserDao extends BaseDao<User, Long> {

//    int returnFutureCommission();
    User findPhoneUser(String phone);
    void setPasswd(String phone, String passwd);
    User login(String phone, String passwd);
    void updateLoginTime(String phone, long date);

    /**
     * 修改昵称，性别，年龄，生日，最近的状态
     * @param user
     */
    void updateInfo(User user);
    void updateHeadUrlChangeTime(User user);

    /**
     * 通过微信的唯一标识查找用户
     * @param weCharUnionId
     * @return
     */
    User findByWeCharUnionId(String weCharUnionId);

    /**
     * 修改用户的地域信息
     * @param user
     */
    void updateLocationInfo(User user);
}
